a = int(input())
if a <= 7: print('very easy')
elif a <= 233: print('easy')
elif a <= 10032: print('medium')
elif a <= 114514: print('hard')
elif a <= 1919810: print('very hard')
else: print('can not imagine')